package com.ruoyi.blogs.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 标签对象 bs_tag
 *
 * @author ruoyi
 * @date 2022-11-04
 */
@ApiModel(value = "BsTag", description = "标签实体")
public class BsTag extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    /** 分类名称 */
    @ApiModelProperty("标签名称")
    @Excel(name = "标签名称")
    private String name;

    /** 是否显示 */
    @ApiModelProperty("是否显示")
    @Excel(name = "是否显示")
    private Integer visible;

    /** 排序 */
    @ApiModelProperty("排序")
    @Excel(name = "排序")
    private Long sort;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setVisible(Integer visible)
    {
        this.visible = visible;
    }

    public Integer getVisible()
    {
        return visible;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("visible", getVisible())
                .append("sort", getSort())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}